package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Storages;
import cn.wolfcode.crm.query.AccidentChartQueryObject;
import cn.wolfcode.crm.query.StoragesQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StoragesMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Storages record);

    Storages selectByPrimaryKey(Long id);

    List<Storages> selectAll();

    void updateByPrimaryKey(Storages record);

    int queryFormCount(StoragesQueryObject qo);

    List<Storages> queryFormList(StoragesQueryObject qo);

    void storagesIdsStoraId(@Param("id") Long id, @Param("state") int state,@Param("pay")int pay);

    void storagesIdsStora(@Param("paymentTime") Date paymentTime ,@Param("id") Long id,@Param("method") String method);

    /*
    * 查询理赔报表数据
    * */
    List<Map<String,Object>> accidentForChart(AccidentChartQueryObject qo);
    /*
   * 填写事故备案表之后,将accident_state改成1
   * */
    void changeAccidenState(String insuranceNo);
    /*
    * 根据保险单号查询客户id
    * */
    Long getClientId(String insuranceNo);
}